﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LTSMZ.life.Model;
using LTSMZ.life.DAL;

namespace LTSMZ.life.BLL
{
    public class CommentBll
    {
        CommentDal dal = new CommentDal();
        /// <summary>
        /// 点击商品,下面显示本商品的评论
        /// </summary>
        /// <param name="OrderId">商品ID</param>
        /// <returns></returns>
        public List<Comment> ShowComment(int OrderId)
        {
            return dal.ShowComment(OrderId);
        }
        /// <summary>
        /// 显示当前商品的总评论数
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int ShowCount(int id)
        {
            return dal.ShowCount(id);
        }
    }
}
